int max_num(int num[],int n)
{
	int i,m;
	for (i = 0,m = num[0];i < n;i++ )
	{
		if (num[i] > m)
			m = num[i];
	}
	return m;
}
	
